import request from '@/utils/request'
import requestRespose from '@/utils/requestRespose'

export function selectOverStandardDataDto(query) {
  return request({
    url: '/web-api/dataQuery/overStandard/selectOverStandardDataDto',
    method: 'get',
    params: query
  })
}
export function exportOverStandardDataDto(query) {
  return requestRespose({
    url: '/web-api/dataQuery/overStandard/exportOverStandardDataDto',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
export function selectRealtimeData(query) {
  return request({
    url: '/web-api/dataQuery/realtime/selectRealtimeData',
    method: 'get',
    params: query
  })
}

export function selectRealtimeBrokenData(query) {
  return request({
    url: '/web-api/dataQuery/realtime/selectRealtimeBrokenData',
    method: 'get',
    params: query
  })
}

export function exportRealtimeData(query) {
  return requestRespose({
    url: '/web-api/dataQuery/realtime/exportRealtimeData',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
export function selectMouthData(query) {
  return request({
    url: '/web-api/dataQuery/mouthData/selectMouthData',
    method: 'get',
    params: query
  })
}
export function exportMouthData(query) {
  return requestRespose({
    url: '/web-api/dataQuery/mouthData/exportMouthData',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

export function selectMinutetimeData(query) {
  return request({
    url: '/web-api/dataQuery/minutetime/selectMinutetimeData',
    method: 'get',
    params: query
  })
}

export function selectMinuteBrokenData(query) {
  return request({
    url: '/web-api/dataQuery/minute/selectMinuteBrokenData',
    method: 'get',
    params: query
  })
}

export function exportMinutetimeData(query) {
  return requestRespose({
    url: '/web-api/dataQuery/minutetime/exportMinutetimeData',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
export function selectHourData(query) {
  return request({
    url: '/web-api/dataQuery/hourData/selectHourData',
    method: 'get',
    params: query
  })
}

export function selectHourBrokenData(query) {
  return request({
    url: '/web-api/dataQuery/hour/selectHourBrokenData',
    method: 'get',
    params: query
  })
}

export function exportHourData(query) {
  return requestRespose({
    url: '/web-api/dataQuery/hourData/exportHourData',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
export function selectDayData(query) {
  return request({
    url: '/web-api/dataQuery/dayData/selectDayData',
    method: 'get',
    params: query
  })
}

export function selectDayDBrokenData(query) {
  return request({
    url: '/web-api/dataQuery/day/selectDayBrokenData',
    method: 'get',
    params: query
  })
}

export function exportdayData(query) {
  return requestRespose({
    url: '/web-api/dataQuery/dayData/exportdayData',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
export function selectYearData(query) {
  return request({
    url: '/web-api/dataQuery/yearData/selectYearData',
    method: 'get',
    params: query
  })
}
export function exportYearData(query) {
  return requestRespose({
    url: '/web-api/dataQuery/yearData/exportYearData',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

export function getRealTimeDz(query) {
  return requestRespose({
    url: '/web-api/dataQuery/realtime/changeData1',
    method: 'get',
    params: query
  })
}
export function getRealTimeCb(query) {
  return requestRespose({
    url: '/web-api//dataQuery/realtime/changeData3',
    method: 'get',
    params: query
  })
}

